package com.ynu.controller;
import com.ynu.bean.entity.Cart;
import com.ynu.service.CartService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;


/**
* (tb_cart)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/cart")
public class CartController {

    @Resource
    private CartService cartService;


    @GetMapping("selectById")
    public Cart selectById(Long id) {
        return cartService.selectByPrimaryKey(id);
    }

}
